<?
include "lib/classes.php";
@session_start();

	if(isset($_GET['anuncio'])){

$dadostemp	= $_anu->pega($_GET['anuncio']);
$cliente	= $_anu->pegaUsuarioPeloAnuncio($dadostemp['cliente']);
$status		= $_anu->ExibeStatus($dadostemp["status"]);
$dados		= $_vid->lista("WHERE anuncio = '".$_GET['id']."' ",false,false);
$dadosativo	= $_vid->lista("WHERE anuncio = '".$_GET['id']."' and destaque = '1' ",false,false);
	
	}
	

$numcliente	= mysql_num_rows(mysql_query("SELECT * FROM clientes"));
$numanuncio	= mysql_num_rows(mysql_query("SELECT * FROM anuncios WHERE ativo = '1'"));


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
<!--
#central p em {
	font-size: 15px;
}
-->
</style>
<?php include "includes/headers-conteudo.php"; ?>
<body>

<!--COMECAO DO TOPO-->
<?php include "includes/header.php"; ?>
<!--FIMZAO DO TOPO-->
<style type="text/css">
#menugeral{
width:100%;
padding:3px;
border:solid 1px #000000;
}

.menu{
background-image:url(images/etapa-inativa.jpg);
background-repeat:no-repeat;
background-position:center;
width:180px;
height:31px;
float:left;
padding-top:15px;
margin-left:5px;
}

.menu_select{
background-image:url(images/etapa-ativa.jpg);
background-repeat:no-repeat;
background-position:center;
width:180px;
height:31px;
float:left;
padding-top:15px;
margin-left:5px;
}


#itens {
border-bottom: solid 1px #999; 
height:38px
}
#itens div{
float:left;
}

#itens a{
	width:180px;
	margin:0px auto;
	padding-top:5px;
	text-align:center;
	font-size:16px;
	font-weight:bold;
	color:#444
	
}


.conteudo{
width:100%;
}
</style>
<script type="text/javascript">
function aba(abasim,abanao,abanao2,abanao3){

d("aba_menu_" +abasim).style.display='';
d("aba_"+abasim).className='menu_select';

d("aba_menu_"+abanao).style.display='none';
d("aba_"+abanao).className='menu';

d("aba_menu_"+abanao2).style.display='none';
d("aba_"+abanao2).className='menu';

d("aba_menu_"+abanao3).style.display='none';
d("aba_"+abanao3).className='menu';



}
</script>

<div id="central">



<!--FIM DIV QUE SEPARA O MENU-->


<?php include "includes/busca.php"; ?>


  <div class="gh-clr"></div>

<!--MENU ESPACAMENTO-->
<div style="clear:both">&nbsp;</div>
<!--MENU ESPACAMENTO-->
<div id="central">



<div id="conteudo-geral">
 
</div>


<h1>Usu&aacute;rio autenticado com sucesso!</h1>
<p>Agora voc&ecirc; faz parte do grupo dos mais inteligentes anunciantes da web. N&oacute;s j&aacute; somos <strong><?=$numcliente?></strong> anunciante(s), com mais de <strong><?=$numanuncio?></strong> itens ofertados.</p>
<h1 style="font-weight:normal"><strong>solmais</strong> &eacute; um universo de <strong>solu&ccedil;&otilde;es  online</strong> para voc&ecirc;.</h1>
<!--<p>&lt;&lt;<a href="novo-anuncio.php?categoria=<?=$_SESSION["post"]['categoria']?>&amp;etapa=3">voltar para o anuncio</a></p>-->
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>


<script type="text/javascript">
function aba(abasim,abanao,abanao2,abanao3){

d("aba_menu_" +abasim).style.display='';
d("aba_"+abasim).className='menu_select';

d("aba_menu_"+abanao).style.display='none';
d("aba_"+abanao).className='menu';

d("aba_menu_"+abanao2).style.display='none';
d("aba_"+abanao2).className='menu';

d("aba_menu_"+abanao3).style.display='none';
d("aba_"+abanao3).className='menu';



}
</script>
</div>




</div>

<div style="clear:both">&nbsp;</div>


 </div>



<?php include "includes/rodape.php"; ?>




</body>
</html>
